package com.weilx959.spt.plugin.e2sp.component;

import com.weilx959.spt.plugin.e2sp.constant.Dialect;
import javafx.scene.control.ListCell;

public class DialectListCell extends ListCell<Dialect> {
    @Override
    protected void updateItem(Dialect item, boolean empty) {
        super.updateItem(item, empty);

        if (item == null || empty) {
            setText(null);
        } else {
            setText(item.getValue());
        }
    }
}